package net.wanho.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import net.wanho.mapper.OperLogMapper;
import net.wanho.po.OperLog;
import net.wanho.service.OperLogService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @author 32033
 * @description 针对表【oper_log(系统操作日志)】的数据库操作Service实现
 * @createDate 2025-01-11 17:01:23
 */
@Service
@RequiredArgsConstructor
public class OperLogServiceImpl extends ServiceImpl<OperLogMapper, OperLog>
        implements OperLogService {

    private final OperLogMapper operLogMapper;

    @Async
    @Override
    public void add(OperLog operLog) {
        operLogMapper.insert(operLog);
    }
}




